package com.kakarote.admin.controller;


import com.kakarote.admin.entity.PO.AdminFeedback;
import com.kakarote.admin.service.IAdminFeedbackService;
import com.kakarote.core.common.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 提供反馈 前端控制器
 * </p>
 *
 * @author zhangzhiwei
 * @since 2021-11-16
 */
@RestController
@RequestMapping("/adminFeedback")
@Api(tags = "反馈相关接口")
public class AdminFeedbackController {

    @Autowired
    private IAdminFeedbackService adminFeedbackService;


    @PostMapping("/addFeedback")
    @ApiOperation("新增反馈")
    public Result addFeedback(@RequestBody AdminFeedback adminFeedback) {
        adminFeedbackService.addFeedback(adminFeedback);
        return Result.ok();
    }

}

